package com.pingbu.tijian.hospital.backapi.api;

import com.pingbu.common.bean.ResultBean;
import com.pingbu.tijian.hospital.backapi.bean.entity.StudentGroup;
import com.pingbu.tijian.hospital.backapi.bean.vo.GroupWithStudents;
import com.pingbu.tijian.hospital.backapi.service.StudentGroupExtendService;
import com.pingbu.tijian.hospital.backapi.service.StudentGroupService;
import com.pingbu.tijian.hospital.backapi.service.UserInfoService;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@CrossOrigin
@RestController
@RequestMapping("/student_group_extend")
public class StudentGroupExtendController {

    private static Logger logger = LoggerFactory.getLogger(StudentGroupExtendController.class);

    @Autowired
    private UserInfoService userService;
    @Autowired
    private StudentGroupService studentGroupService;
    @Autowired
    private StudentGroupExtendService studentGroupExtendService;




    /**
     *
     * @return
     */
    @PostMapping(value = "/list_with_students")
    public ResultBean<List<GroupWithStudents>> list_with_students(@RequestBody StudentGroup param ) {
        ResultBean<List<GroupWithStudents>> rb1 = studentGroupExtendService.list(param);
        return rb1;
    }



}
